[INFO] cloning repository https://github.com/teremo4ek/rust_cookbook
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teremo4ek/rust_cookbook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteremo4ek%2Frust_cookbook", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteremo4ek%2Frust_cookbook'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 97628ec6c8db26164b2c833827d1c7666b0e0a62
[INFO] fixing teremo4ek/rust_cookbook against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteremo4ek%2Frust_cookbook" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/teremo4ek/rust_cookbook
[INFO] finished tweaking git repo https://github.com/teremo4ek/rust_cookbook
[INFO] tweaked toml for git repo https://github.com/teremo4ek/rust_cookbook written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/teremo4ek/rust_cookbook on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/teremo4ek/rust_cookbook already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded mini-redis v0.4.1
[INFO] [stderr]   Downloaded atoi v0.3.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852
[INFO] running `Command { std: "docker" "start" "b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking regex-syntax v0.8.11
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]    Compiling pin-project-internal v1.1.13
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]     Checking serde_json v1.0.150
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking tracing-serde v0.1.3
[INFO] [stderr]     Checking tracing-log v0.1.4
[INFO] [stderr]     Checking matchers v0.0.1
[INFO] [stderr]     Checking futures-sink v0.3.32
[INFO] [stderr]     Checking futures-channel v0.3.32
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking tokio v1.52.3
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]     Checking pin-project v1.1.13
[INFO] [stderr]     Checking tracing-futures v0.2.5
[INFO] [stderr]     Checking chrono v0.4.45
[INFO] [stderr]     Checking atoi v0.3.3
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking regex v1.12.4
[INFO] [stderr]     Checking tracing-subscriber v0.2.25
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking futures-executor v0.3.32
[INFO] [stderr]     Checking futures v0.3.32
[INFO] [stderr]    Compiling structopt-derive v0.4.18
[INFO] [stderr]     Checking mini-tokio v0.1.0 (/opt/rustwide/workdir/mini-tokio)
[INFO] [stderr]     Checking structopt v0.3.26
[INFO] [stderr]     Checking tokio-stream v0.1.18
[INFO] [stderr]     Checking mini-redis v0.4.1
[INFO] [stderr]     Checking learining-rust v0.1.0 (/opt/rustwide/workdir/rust_cookbook)
[INFO] [stderr]     Checking channels v0.1.0 (/opt/rustwide/workdir/channels)
[INFO] [stderr]     Checking streams v0.1.0 (/opt/rustwide/workdir/streams)
[INFO] [stderr]     Checking echo-server v0.1.0 (/opt/rustwide/workdir/echo-server)
[INFO] [stdout] error[E0432]: unresolved import `thiserror`
[INFO] [stdout]  --> rust_cookbook/examples/error_4.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `thiserror`, use `cargo add thiserror` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `anyhow`
[INFO] [stdout]  --> rust_cookbook/examples/error_3.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{anyhow, Context, Result};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `anyhow`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `serde`
[INFO] [stdout]  --> rust_cookbook/examples/error_3.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::Deserialize;
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `serde`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `same_file`
[INFO] [stdout]  --> rust_cookbook/examples/file_1.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use same_file::Handle;
[INFO] [stdout]   |     ^^^^^^^^^ use of unresolved module or unlinked crate `same_file`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `same_file`, use `cargo add same_file` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:31:7
[INFO] [stdout]    |
[INFO] [stdout] 31 |     #[error("Неожиданный символ {0}")]
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:68:7
[INFO] [stdout]    |
[INFO] [stdout] 68 |     #[error("Ошибка токенизатора: {0}")]
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `from` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:69:22
[INFO] [stdout]    |
[INFO] [stdout] 69 |     TokenizerError(#[from] TokenizerError),
[INFO] [stdout]    |                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `ring` in this scope
[INFO] [stdout]  --> rust_cookbook/examples/signature.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ring::error::Unspecified;
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `ring`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `ring` in this scope
[INFO] [stdout]  --> rust_cookbook/examples/signature.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use ring::rand::SecureRandom;
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `ring`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:70:7
[INFO] [stdout]    |
[INFO] [stdout] 70 |     #[error("Неожиданный конец ввода")]
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:72:7
[INFO] [stdout]    |
[INFO] [stdout] 72 |     #[error("Неожиданный токен {0:?}")]
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:74:7
[INFO] [stdout]    |
[INFO] [stdout] 74 |     #[error("Невалидное число")]
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `ring`
[INFO] [stdout]  --> rust_cookbook/examples/signature.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ring::{hmac, rand};
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `ring`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking spawning v0.1.0 (/opt/rustwide/workdir/spawning)
[INFO] [stdout] error: cannot find attribute `from` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:75:21
[INFO] [stdout]    |
[INFO] [stdout] 75 |     InvalidNumber(#[from] std::num::ParseIntError),
[INFO] [stdout]    |                     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `learining-rust` (example "signature") due to 3 previous errors
[INFO] [stdout] error[E0433]: cannot find module or crate `csv` in this scope
[INFO] [stdout]   --> rust_cookbook/examples/error_3.rs:15:26
[INFO] [stdout]    |
[INFO] [stdout] 15 |         let color: Rgb = csv::Reader::from_reader(csv_data)
[INFO] [stdout]    |                          ^^^ use of unresolved module or unlinked crate `csv`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `csv`, use `cargo add csv` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `learining-rust` (example "file_1") due to 1 previous error
[INFO] [stdout] error[E0432]: unresolved import `anyhow`
[INFO] [stdout]  --> rust_cookbook/examples/file_2.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Context, Result};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `anyhow`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `learining-rust` (example "error_3") due to 3 previous errors
[INFO] [stderr] error: could not compile `learining-rust` (example "error_4") due to 12 previous errors
[INFO] [stdout] error[E0277]: `?` couldn't convert the error to `ParserError`
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:82:67
[INFO] [stdout]    |
[INFO] [stdout] 81 |     fn parse_expr<'a>(tokens: &mut Tokenizer<'a>) -> Result<Expression, ParserError> {
[INFO] [stdout]    |                                                      ------------------------------- expected `ParserError` because of this
[INFO] [stdout] 82 |         let tok = tokens.next().ok_or(ParserError::UnexpectedEOF)??;
[INFO] [stdout]    |                   ------------------------------------------------^ the trait `From<TokenizerError>` is not implemented for `ParserError`
[INFO] [stdout]    |                   |
[INFO] [stdout]    |                   this can't be annotated with `?` because it has type `Result<_, TokenizerError>`
[INFO] [stdout]    |
[INFO] [stdout] note: `ParserError` needs to implement `From<TokenizerError>`
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:67:1
[INFO] [stdout]    |
[INFO] [stdout] 67 | enum ParserError {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0271]: type mismatch resolving `<u32 as FromStr>::Err == ParserError`
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:85:29
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let v = num.parse()?;
[INFO] [stdout]    |                             ^^^^^ expected `ParserError`, found `ParseIntError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `ParserError: From<TokenizerError>` is not satisfied
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:97:42
[INFO] [stdout]    |
[INFO] [stdout] 97 |             Some(Err(e)) => return Err(e.into()),
[INFO] [stdout]    |                                          ^^^^ unsatisfied trait bound
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `From<TokenizerError>` is not implemented for `ParserError`
[INFO] [stdout]   --> rust_cookbook/examples/error_4.rs:67:1
[INFO] [stdout]    |
[INFO] [stdout] 67 | enum ParserError {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: required for `TokenizerError` to implement `Into<ParserError>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `anyhow` in this scope
[INFO] [stdout]    --> rust_cookbook/examples/error_4.rs:105:14
[INFO] [stdout]     |
[INFO] [stdout] 105 | fn main() -> anyhow::Result<()> {
[INFO] [stdout]     |              ^^^^^^ use of unresolved module or unlinked crate `anyhow`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0271`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `context` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]  --> rust_cookbook/examples/file_2.rs:6:42
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let current_dir = env::current_dir().context("Failed to get current directory")?;
[INFO] [stdout]   |                                          ^^^^^^^ method not found in `Result<PathBuf, std::io::Error>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `context` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]   --> rust_cookbook/examples/file_2.rs:12:45
[INFO] [stdout]    |
[INFO] [stdout] 12 |     for entry in fs::read_dir(&current_dir).context("Failed to read directory")? {
[INFO] [stdout]    |                                             ^^^^^^^ method not found in `Result<ReadDir, std::io::Error>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `context` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]   --> rust_cookbook/examples/file_2.rs:15:44
[INFO] [stdout]    |
[INFO] [stdout] 15 |         let metadata = fs::metadata(&path).context("Failed to read metadata")?;
[INFO] [stdout]    |                                            ^^^^^^^ method not found in `Result<Metadata, std::io::Error>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `learining-rust` (example "file_2") due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852", kill_on_drop: false }`
[INFO] [stdout] b8376a85a676486b4f904d992fbd2894783a06c2856905f6abf665b712a94852
